<template>
  <div class="site-aside-container">
    <Avatar :url="data.avatar" />
    <h1 class="title">{{ data.siteTitle }}</h1>
    <Meun />
    <Contact />
    <!-- <p class="footer"></p> -->
  </div>
</template>

<script>
import Avatar from "@/components/Avatar";
import Contact from "./Contact";
import Meun from "./Meun";
import { mapState } from "vuex";
export default {
  components: {
    Avatar,
    Contact,
    Meun,
  },
  created() {
    this.$store.dispatch("setting/fetchData");
  },
  computed: mapState("setting", ["data"]),
};
</script>

<style lang="less">
@import "~@/style/var.less";
.site-aside-container {
  width: 100%;
  height: 100%;
  padding: 20px 0;
  background: @dark;
  overflow-x: hidden;
  overflow-y: auto;

  box-sizing: border-box;
  .title {
    color: #fff;
    font-size: 20px;
    text-align: center;
  }
}
.avatar-container {
  text-align: center;
  display: block;
  margin: 0 auto;
}
</style>